package com.reservation.mapper;

import com.reservation.entity.Venue;
import com.reservation.util.PageParam;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface VenueMapper {

    List<Venue> findAll();

    List<Venue> findByPage(@Param("offset") Integer offset, @Param("pageSize") Integer pageSize);
    
    int count();

    Venue findById(Integer id);

    int insert(Venue venue);

    int update(Venue venue);

    int deleteById(Integer id);

    int updateStatus(@Param("id") Integer id, @Param("status") String status);
} 